package com.java.thread;

/**
 * @Author hyx
 * @Description TODO
 * @Date 2024/3/3 21:25
 * @Version 1.0
 */
public class ThreadTest {
    public static void main(String[] args) {
        Ticket ticket = new Ticket(100); //创建现场-通过Runable方式创建
        System.out.println("ExceptionDemoTEST我是no  wo excption.//");

        Thread t1 = new Thread(ticket);
        Thread t2 = new Thread(ticket);
        Thread t3 = new Thread(ticket);

        t1.start();
        t2.start();
        t3.start();
    }
}
